package com.campus.help.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TaskPublishRequest {
    
    @NotBlank(message = "任务标题不能为空")
    private String title;
    
    @NotBlank(message = "任务描述不能为空")
    private String description;
    
    @NotNull(message = "截止时间不能为空")
    private LocalDateTime deadline;
    
    @NotNull(message = "报酬不能为空")
    @DecimalMin(value = "0.01", message = "报酬必须大于0")
    private BigDecimal reward;
}